package com.zy.vo;

import com.baomidou.mybatisplus.core.metadata.IPage;

import com.zy.pojo.Role;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @date 2020/5/13 - 19:56
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageAto {
    private List<Role> record;//一页数据
    private Long total;//总条数
//    public static PageAto getInstance(IPage<Role> ipage){
//        PageAto pageUtil = new PageAto();
//        pageUtil.setRecord(ipage.getRecords());
//        pageUtil.setTotal(ipage.getTotal());
//        return pageUtil;
//    }
}
